package com.lu.library.di

import com.blankj.utilcode.util.LogUtils
import com.lu.library.kv.KV
import com.lu.library.kv.MMKVImpl
import dagger.Binds
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent

/**
 * 提供单例
 */
@InstallIn(SingletonComponent::class)
@Module
object AppModule {

    /**
     * kv存储类
     */
    @Provides
    fun provideMMKVImpl():KV{
        LogUtils.d("AppModule","provideMMKVImpl")
        return MMKVImpl()
    }

}